package org.suk.dp.user.impl;


import org.suk.dp.user.User;
import org.suk.dp.visitor.Visitor;

/**
 * @description: 学生
 * @Date : 2020/12/31 11:56 AM
 * @Author : 石冬冬-Seig Heil
 */
public class Student extends User {

    public Student(String name, String identity, String clazz) {
        super(name, identity, clazz);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    /**
     * 排名
     * @return
     */
    public int ranking() {
        return (int) (Math.random() * 100);
    }

}
